<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kursus Gitar Online</title>

    <!-- Core CSS - Include with every page -->
    <link href="<?php echo base_url(); ?>asset_bo/css/bootstrap.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>asset_bo/fonts/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>asset_bo/css/datepicker.css" rel="stylesheet">

    <!-- SB Admin CSS - Include with every page -->
    <link href="<?php echo base_url(); ?>asset_bo/css/sb-admin.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>asset_bo/css/custom.css" rel="stylesheet">

    <script src="<?php echo base_url(); ?>asset_bo/js/jquery-1.10.2.js"></script>
    <script src="<?php echo base_url(); ?>asset_bo/js/bootstrap.min.js"></script>
    <!-- Validasi -->
    <script src="<?php echo base_url(); ?>asset_bo/js/validasi/additional-methods.js"></script>
    <script src="<?php echo base_url(); ?>asset_bo/js/validasi/jquery.validate.js"></script>
    <!-- Text Editor -->
    <script src="<?php echo base_url(); ?>asset_bo/jscripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
    <script src="<?php echo base_url(); ?>asset_bo/jscripts/tiny_mce/tiny_konten.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(".alert").alert('close')
    </script>
  </head>

  <body>
    <div id="wrapper">
      <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" style="margin-bottom: 0">
          <div class="navbar-header pull-left">
            <a class="navbar-brand" href="index.php">Dashboard Kursus Gitar Online</a>
          </div>
          <!-- /.navbar-header -->
          <?php
          $nama = $this->session->userdata('nama');
          if(isset($nama)){
          ?>
          <ul class="nav navbar-top-links navbar-right pull-right">
            <li class="dropdown">
              <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                <?php echo $nama; ?>&nbsp;<i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
              </a>
              <ul class="dropdown-menu dropdown-messages">
                <li><a href="<?php echo site_url('user/ganti_password'); ?>"><i class="fa fa-lock fa-fw"></i> Change Password</a>
                </li>
                <!--<li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                </li>-->
                <li class="divider"></li>
                <li><a href="<?php echo site_url('login/logout'); ?>"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                </li>
              </ul>
              <!-- /.dropdown-messages -->
            </li>
          </ul>
          <?php
          }
          ?>
          <div class="clearfix"></div>
          <!-- /.navbar-top-links -->
          
          <div class="outer100atas">
              <div class="container-fluid">
                <ul class="nav-atas-b">
                  <li>
                    <a href="<?php echo site_url('dashboard')?>">
                      <p class="p-menu-icon text-center"><span class="glyphicon glyphicon-home"></span></p>
                      <p class="p-menu">Dashboard</p>
                    </a>
                  </li>
                  <li>
                    <a href="<?php echo site_url('setting') ?>">
                      <p class="p-menu-icon text-center"><span class="glyphicon glyphicon-cog"></span></p>
                      <p class="p-menu">Setting</p>
                    </a>
                  </li>
                  <li class="pull-right text-right nama-perusahaan">
                    Kursus Gitar Online
                    <p class="tagline">Zianturi Studio</p>
                  </li>
                <div class="clearfix"></div>
                </ul>
              </div>
          <div class="clearfix"></div>
          </div>
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
          </div>
          <div class="navbar-default navbar-static-side" role="navigation">
            <div class="sidebar-collapse">
              <ul class="nav" id="side-menu">
                <li>
                  <a href="<?php echo site_url('dashboard') ?>"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
                </li>
                <li>
                  <a href="#"><i class="fa fa-cog fa-fw"></i> Setting<span class="fa arrow"></span></a>
                  <ul class="nav nav-second-level">
                    <li>
                      <a href="<?php echo site_url('setting/seo') ?>">SEO</a>
                    </li>
                    <li>
                      <a href="<?php echo site_url('setting/pesan') ?>">Pesan</a>
                    </li>
                    <li>
                      <a href="<?php echo site_url('setting/pertemuan') ?>">Jumlah Pertemuan</a>
                    </li>
                    <li>
                      <a href="<?php echo site_url('setting/harga') ?>">Biaya Pendaftaran</a>
                    </li>
                  </ul>
                  <!-- /.nav-second-level -->
                </li>
                <li>
                  <a href="#"><i class="fa fa-folder-open fa-fw"></i> Master<span class="fa arrow"></span></a>
                  <ul class="nav nav-second-level">
                    <li>
                      <a href="<?php echo site_url('content') ?>">Content</a>
                    </li>
                    <li>
                      <a href="<?php echo site_url('provinsi') ?>">Provinsi</a>
                    </li>
                  </ul>
                  <!-- /.nav-second-level -->
                </li>
                <li>
                  <a href="#"><i class="fa fa-users fa-fw"></i> Member<span class="fa arrow"></span></a>
                  <ul class="nav nav-second-level">
                    <li>
                      <a href="<?php echo site_url('member/free') ?>">Free Member</a>
                    </li>
                    <li>
                      <a href="<?php echo site_url('member/premium') ?>">Premium Member</a>
                    </li>
                  </ul>
                  <!-- /.nav-second-level -->
                </li>
                <li>
                  <a href="<?php echo site_url('member/permintaan_update') ?>"><i class="fa fa-user fa-fw"></i> Permintaan Update</a>
                </li>
                <li>
                  <a href="<?php //echo site_url('materi') ?>"><i class="fa fa-book fa-fw"></i> Materi</a>
                </li>
              </ul>
              <!-- /#side-menu -->
            </div>
            <!-- /.sidebar-collapse -->
          </div>
          <div class="clearfix"></div>
          <!-- /.navbar-static-side -->
      </nav>

    <!-- mulai konten -->
    <?php
    $this->load->view($main_view);
    ?>
    <!-- end konten -->

    </div>
    <!-- /#wrapper -->
    <!-- Core Scripts - Include with every page -->
    <script src="<?php echo base_url(); ?>asset_bo/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="<?php echo base_url(); ?>asset_bo/js/bootstrap-datepicker.js"></script>
    <script src="<?php echo base_url(); ?>asset_bo/js/bootstrap-datepicker.id.js"></script>
    <script>
    $('.tanggal').datepicker({
      format: "dd/mm/yyyy",
      language: "id"
    });
    </script>
    <!-- SB Admin Scripts - Include with every page -->
    <script src="<?php echo base_url(); ?>asset_bo/js/sb-admin.js"></script>
  </body>
</html>
